package com.forum.service.confession;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.entity.ApiResult;
import com.forum.param.ConfessionQueryParam;
import com.forum.param.ConfessionWallUploadParam;
import com.forum.pojo.confession.ConfessionWall;

import java.util.Map;

/**
 * @author Tsing
 */
public interface ConfessionWallService extends IService<ConfessionWall> {

    /**
     * 表白墙上传
     * @return ApiResult
     * @param param
     * **/
    ApiResult<String> confessionUpload(ConfessionWallUploadParam param);

    /**
     * 表白墙查询
     * @return ApiResult
     * @param param
     * **/
    ApiResult<Map<String,Object>> getConfessionList(ConfessionQueryParam param);

    /**
     * 获取当前用户的所有表白墙
     * @return ApiResult
     * @param param
     * **/
    ApiResult<Map<String,Object>> getConfessionByCurrentUser(ConfessionQueryParam param);

    /**
     * 根据ID获取表白墙详情
     * @return ApiResult
     * @param confessionId 表白墙ID
     * **/
    ApiResult<Map<String,Object>> getConfessionDetailById(Integer confessionId);
}
